import request from '@/utils/request';

const aliFmtSampleApi = {};

aliFmtSampleApi.signSample = (number) => {
	return request({
		url: '/platform-api/ali-fmt-sample/sign-sample/' + number,
		method: 'put',
	})
}
aliFmtSampleApi.geneBarCode = (number) => {
	return request({
		url: '/platform-api/ali-fmt-sample/gene-barcode/' + number,
		method: 'get',
    responseType: 'blob',
	})
}
aliFmtSampleApi.page = (params) => {
	return request({
		url: '/platform-api/ali-fmt-sample/page',
		method: 'post',
		data: params,
	})
}
aliFmtSampleApi.add = (params) => {
	return request({
		url: '/platform-api/ali-fmt-sample',
		method: 'post',
		data: params,
	})
}
aliFmtSampleApi.update = (params) => {
	return request({
		url: '/platform-api/ali-fmt-sample',
		method: 'put',
		data: params,
	})
}
aliFmtSampleApi.get = (id) => {
	return request({
		url: '/platform-api/ali-fmt-sample/' + id,
		method: 'get',
	})
}
aliFmtSampleApi.delete = (id) => {
	return request({
		url: '/platform-api/ali-fmt-sample/' + id,
		method: 'delete',
	})
}


export default aliFmtSampleApi